////////////////////
// Dev Tools - Performance
////////////////////

import { events } from "./events";

/**
 * Use the `Browser.devtools.performance` API to listen to recording status updates in the Performance panel in DevTools.
 * @since Chrome 129
 */
export namespace devtools {
    export namespace performance {
        export interface ProfilingStartedEvent extends events.Event<() => void> { }

        export interface ProfilingStoppedEvent extends events.Event<() => void> { }

        /** Fired when the Performance panel begins recording performance data. */
        export var onProfilingStarted: ProfilingStartedEvent = new events.EventDispatcher();
        /** Fired when the Performance panel stops recording performance data. */
        export var onProfilingStopped: ProfilingStoppedEvent = new events.EventDispatcher();
    }
}